<?php


namespace logic\cyf;


use frontend\models\cyf\Address;

class AddRessLogin
{
    public static function shippingAddRess($userId)
    {
        $address = Address::getAddrssByUserId($userId);
        if(!$address) throw new \Exception('请先填写收货地址');
        return $address;
     }
}